# app/config.py
import os
from os import getenv

class Config(object):
    # SECRET_KEY = getenv('SECRET_KEY') or 'a_very_secret_key'
    # # SQLALCHEMY_DATABASE_URI = getenv('SQLALCHEMY_DATABASE_URI') or 'sqlite:///my_website.db'
    # SQLALCHEMY_DATABASE_URI = 'sqlite:///site.db'
    # SQLALCHEMY_TRACK_MODIFICATIONS = getenv('SQLALCHEMY_TRACK_MODIFICATIONS') or False

    _basedir = os.path.abspath(os.path.dirname(__file__))
    SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'app.db')
    SQLALCHEMY_MIGRATE_REPO = os.path.join(_basedir, 'db_repository')
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SECRET_KEY = 'my_precious'





